how to pass an array to a function in c